package com.example.demo3.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo3.dao.UserMapper;
import com.example.demo3.entity.User;
import com.example.demo3.handler.UserResultHandler;
import com.example.demo3.service.UserService;
import com.example.demo3.util.CryptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author allnas
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Resource
    private CryptService cryptService;

    @Override
    public void selectFetchSize() {
        UserResultHandler userResultHandler = new UserResultHandler(cryptService);
        baseMapper.selectFetchSize(userResultHandler);
        userResultHandler.end();
    }
}
